package com.example.demo.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_product",schema = "")
public class TableProduct  extends  PageEntity{

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //商品名称
  @Column(name = "product_name")
  private String productName;

  //商品产地
  @Column(name = "product_address")
  private String productAddress;

  //商品信息
  @Column(name = "product_info")
  private String productInfo;

  //添加商品时间
  @Column(name = "product_startime")
  private Date productStartime;

  //商品下架时间
  @Column(name = "product_endtime")
  private Date productEndtime;

  //商品国标码
  @Column(name = "product_code")
  private String productCode;


}
